package com.learn.tx.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class TopService {

    @Autowired
    EmpService empService;

    @Transactional
    public void topTxMethod() {
        empService.updateEmpNameInner(2, "Tom");
        empService.updateEmpSalaryInner(5, 8888.8);
    }
}
